import service from '@/utils/request';

// 获取达人库列表
export function getActivityExpertList(data) {
  return service({
    url: `/api/system/expertTemplate/pageExpert`,
    method: 'post',
    data,
  });
}

// 删除达人库
export function delActivityExpert(id) {
  return service({
    url: `/api/system/expertTemplate/deleteExpert?expertId=${id}`,
    method: 'get',
  });
}

// 达人库下拉
export function getActivityExpertListSelect(data) {
  return service({
    url: `/api/system/expertTemplate/expertTypeList`,
    method: 'post',
    data
  });
}

// 达人库修改添加
export function addActivityExpert(data) {
  return service({
    url: `/api/system/expertTemplate/saveExpert`,
    method: 'post',
    data
  });
}

// 达人类型列表
export function getExpertTypeList(data) {
  return service({
    url: `/api/system/expertTemplate/pageExpertType`,
    method: 'post',
    data
  });
}

// 添加达人类型
export function addExpertType(data) {
  return service({
    url: `/api/system/expertTemplate/modifyExpertType`,
    method: 'post',
    data
  });
}

// 删除达人类型
export function delExpertType(id) {
  return service({
    url: `/api/system/expertTemplate/deleteExpertType?expertTypeId=${id}`,
    method: 'get',
  });
}
